<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		
		<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
	</head>
	<body>
		
		<div id="app">
			{{message}}
			<input type="text" />
		</div>
		
		<script>			
			
			var app = Vue.createApp({
				data(){
					return {
						"message":"Hello World!",
						}
				},
				
				beforeCreate() {
					console.log("创造前")
				},
				created() {
					console.log("创造后")
				},
				beforeMount() {
					console.log("挂载前")
				},
				mounted(){
					console.log("挂载后")
				},
				beforeUnmount(){
					console.log("取消挂载前")
				},
				unmounted(){
					console.log("取消挂载后")
				},
				beforeUpdate(){
					console.log("更新前")
				},
				updated(){
					console.log("更新后")
				}
				
			});
			
			var vm = app.mount("#app")
		</script>
	</body>
</html>
